package com.seckill.act.feign;

import com.seckill.act.pojo.Activity;
import com.seckill.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Date;

/**
 * @Author：
 * @Description：
 ***/
@FeignClient(value = "seckill-act",path = "/activity")
public interface ActivityFeign {

    /**
     *根据时间查询
     */
    @PostMapping(value = "/bgtime")
    Result<Activity> findByBgtime(@RequestBody Date bgtime);
}
